<%@ Page Language="C#" MasterPageFile="~/Template/Default.master" AutoEventWireup="true" 
	CodeFile="CreateImage.aspx.cs" Inherits="_Administration_CreateImage" %>
<%@ MasterType VirtualPath="~/Template/Default.master" %>
<%@ Register TagPrefix="UC" TagName="FormErrorList" Src="~/UserControl/FormErrorList.ascx" %>


<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyContent" runat="server">

	<p id="_ErrorMessage" class="errormessage" runat="server">Unable to load gallery.</p>
	
	<asp:PlaceHolder ID="_Interface" runat="server">
	
		<form enctype="multipart/form-data" runat="server">
		
			<UC:FormErrorList ID="_FormErrorList" runat="server" />
		
			<div class="admininputitem">
				<h2>Gallery</h2>
				<div id="_GalleryName" runat="server"></div>
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_ImageFile" runat="server">Image</asp:Label></h2>
				<div><input type="file" id="_ImageFile" runat="server" /></div>
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_ImageName" runat="server">Image name</asp:Label></h2>
				<div><input type="text" size="50" maxlength="100" id="_ImageName" runat="server" /></div>
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_ImageDescription" runat="server">Description</asp:Label></h2>
				<div><textarea cols="50" rows="4" id="_ImageDescription" runat="server" /></div>
			</div>
			
			<div class="admininputitem">
				<h2><asp:Label AssociatedControlID="_ImageEnabled" runat="server">Enabled</asp:Label></h2>
				<div><input type="checkbox" id="_ImageEnabled" checked="checked" runat="server" /></div>
			</div>
			
			<div>
				<input type="submit" value="Upload" onserverclick="UploadImage" runat="server" />
				<input type="submit" value="Cancel" onserverclick="CancelUpload" runat="server" />
			</div>
		
		</form>
	
	</asp:PlaceHolder>
	
</asp:Content>